import request from "@/api/request"

export const getAllOrderStatus=(data)=>{
    return request({
        url:`/order/${data.pageNum}/${data.pageSize}`,
    })
}
export const InsertOrderPractise=(data)=>{
    return request({
        url:'/order',
        method:'POST',
        data
    })
}
export const getOrderPractises=(id)=>{
    return request({
        url:`/order/reserved/${id}`,
    })
}
export const getAllOrderPractise=()=>{
    return request({
        url:'/order/reserved',
    })
}
export const getOrderPractiseById=(data)=>{
    return request({
        url:`/order/order/${data.pageNum}/${data.pageSize}/${data.id}`,
    })
}
export const UpdateOrderPractise=(data)=>{
    return request({
        url:'/order',
        method:'PUT',
        data
    })
}
export const deleteOrderPraById=(id)=>{
    return request({
        url:`/order/${id}`,
        method:'DELETE',
    })
}